package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.PromotionDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PromotionDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PromotionDetail record);

    PromotionDetail selectByPrimaryKey(Integer id);

    List<PromotionDetail> selectAll();

    int updateByPrimaryKey(PromotionDetail record);

    void deleteBypromotionId(int promotionId);
}